package org.dromara.system.domain.bo;

import org.dromara.system.domain.Device;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 生产装置业务对象 device
 *
 * @author Lion Li
 * @date 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Device.class, reverseConvertGenerate = false)
public class DeviceBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 生产装置名称
     */
    @NotBlank(message = "生产装置名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sczzmc;

    /**
     * 生产装置编号
     */
    @NotBlank(message = "生产装置编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sczzbh;

    /**
     * 投用时间
     */
    @NotNull(message = "投用时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date tysj;

    /**
     * 负责人
     */
    @NotBlank(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fzr;

    /**
     * 联系方式
     */
    @NotBlank(message = "联系方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lxfs;

    /**
     * 装置用途
     */
    @NotBlank(message = "装置用途不能为空", groups = { AddGroup.class, EditGroup.class })
    private String zzyt;

    /**
     * 装置状态：0停用，1启用
     */
    @NotNull(message = "装置状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long zzzt;


}
